package com.geek.gkbgw.util.page;

public class PageRowBounds extends RowBounds {

    private int pageNo;
    private int pageSize;

    public PageRowBounds(int pageNo, int pageSize) {
        super();
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public int getOffset() {
        return (pageNo - 1) * pageSize;
    }

    @Override
    public int getLimit() {
        return pageSize;
    }
}